package com.hnucm.cooklife.contract.dishresult;

import com.hnucm.cooklife.base.IBaseView;
import com.hnucm.cooklife.bean.db.Dish;

import java.util.List;
import java.util.Map;

import io.reactivex.Observable;

public class Contract {
    public interface IDishResultModel{
        Observable<List<Dish>> loadDishResult(int currentPage, Map<String,String> dishname);
        Observable<List<Dish>> refreshDishResult(int currentPage,Map<String,String> dishname);


    }

    public interface IDishResultView extends IBaseView{
        void onLoadDishResult(List<Dish> dishList);
        void refreshDishResult(List<Dish> dishList);
    }

    public interface IDishResultPresenter{
        void loadDishResult(int currentPage,Map<String,String> dishname);
        void refreshDishResult(int currentPage,Map<String,String> dishname);
    }
}
